package net.yeah.mickey_zhouyou.database.status;

public class DBStatus {

	public static enum Status {
		NOT_INIT, // 还没初始化
		INITING, // 初始化过程中
		INIT_OVER
		// 完成初始化
	}

	private static Status currentStatus = Status.NOT_INIT;

	public static Status getCurrentStatus() {
		return currentStatus;
	}

	public static void changeStatus() {
		switch (currentStatus) {
		case NOT_INIT:
			currentStatus = Status.INITING;
			break;
		case INITING:
			currentStatus = Status.INIT_OVER;
		}
	}
}
